<template>
  <div class="home-swipper">
    <van-swipe :autoplay="3000" lazy-render indicator-color="#ff8000">
      <van-swipe-item v-for="(item, index) in banner" :key="index">
        <img :src="item"  />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>
<script setup>
const banner = [
  "./images/banner1.jpg",
  "./images/banner2.jpg",
];
</script>
<style lang="less" scoped>
.home-swipper {
  width: 100%;
  img {
    width: 100%;
  }
}
</style>